#pragma once
#include "BaseInclude.h"
#include "GameMusic.h"

class CMySoundMgr
{
#define SoundEffectMaxNum 16

public:
	CMySoundMgr(void);
	~CMySoundMgr(void);

	void PlayBGM(const string& rkPath,int iVolume = 300,BOOL bRepeat = TRUE);
	void StopBGM(const string& rkPath);
	void PauseBGM(const string& rkPath);
	void ReStartBGM(const string& rkPath,int iVolume = 300,BOOL bRepeat = TRUE);

	void PlaySoundEffect(const string& rkPath,int iVolume = 300);

	void SetBGMVolume(int iVolume);
	void SetSoundEffectVolume(int iVolume);

protected:
	CGameMusic* GetBGM(const string& rkPath);

private:
	map<string,CGameMusic*> m_apkBGM;
	vector<CGameMusic*> m_apkSoundEffects;
	int m_iBGMVolume;
	int m_iSoundEffectVolume;
	int m_iSoundEffectIndex;
	
};
